<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:c="http://java.sun.com/jstl/core"
                xmlns:sf="http://www.springframework.org/tags/faces"
                xmlns:a4j="http://richfaces.org/a4j"
                xmlns:rich="http://richfaces.org/rich"
                xmlns:spring="http://www.springframework.org/tags"
                template="../../../layout/Template.xhtml">

    <ui:define name="menu">
        <ui:include src="${user.menu}"/>
    </ui:define>

    <ui:define name="title">
        <h:outputText value="#{resourceBundle.deletePartialWelcome}"/>
    </ui:define>

    <ui:define name="content">
        <ui:fragment id="deletePartialFragment">
            <h:form id="deletePartialForm">
                <h:outputText
                        value="#{bundle.deleteMessageInformation} '#{flowScope.currentPartial.subject}' ?"/>

                <rich:panel id="deletePartialPanel" header="#{resourceBundle.deletePartialOverview}">

                    <h:panelGrid id="deletePartialGrid" columns="2">
                        <h:outputText value="#{resourceBundle.deletePartialTextUnitName} : "/>
                        <h:outputText value="#{flowScope.currentPartial.unitName}"/>

                        <h:outputText value="#{resourceBundle.deletePartialTextSubject} : "/>
                        <h:outputText value="#{flowScope.currentPartial.subject}"/>

                        <h:outputText value="#{resourceBundle.deletePartialTextCorrection} : "/>
                        <h:outputText value="#{flowScope.currentPartial.correction}"/>

                        <h:outputText value="#{resourceBundle.deletePartialTextLinkCorrection} : "/>
                        <h:outputText value="#{flowScope.currentPartial.linkCorrection}"/>

                        <h:outputText value="#{resourceBundle.deletePartialTextWeight} : "/>
                        <h:outputText value="#{flowScope.currentPartial.weight}"/>

                        <h:outputText value="#{resourceBundle.deletePartialTextDate} : "/>
                        <h:outputText value="#{flowScope.currentPartial.date}">
                            <f:convertDateTime pattern="dd/MM/yy" type="date"/>
                        </h:outputText>

                        <h:outputText value="#{resourceBundle.deletePartialTextStartTime} : "/>
                        <h:outputText value="#{flowScope.currentPartial.startTime}">
                            <f:convertDateTime pattern="HH:mm" type="time"/>
                        </h:outputText>

                        <h:outputText value="#{resourceBundle.deletePartialTextEndTime} : "/>
                        <h:outputText value="#{flowScope.currentPartial.endTime}">
                            <f:convertDateTime pattern="HH:mm" type="time"/>
                        </h:outputText>

                        <h:outputText value="#{resourceBundle.deletePartialTextConsultationDate} : "/>
                        <h:outputText value="#{flowScope.currentPartial.consultationDate}">
                            <f:convertDateTime pattern="dd/MM/yy" type="date"/>
                        </h:outputText>

                        <h:outputText value="#{resourceBundle.deletePartialTextConsultationHour} : "/>
                        <h:outputText value="#{flowScope.currentPartial.consultationHour}">
                            <f:convertDateTime pattern="HH:mm" type="time"/>
                        </h:outputText>
                    </h:panelGrid>
                </rich:panel>

                <a4j:commandButton id="deletePartialButtonDelete" value="#{bundle.Yes}" action="delete"/>
                <a4j:commandButton id="deletePartialButtonCancel" value="#{bundle.No}"
                                   action="cancel"/>

            </h:form>
        </ui:fragment>
    </ui:define>

</ui:composition>